home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 74
/
Volume 74 My Disc - Damaged.iso
/
Games
/
shusher.swf
/
scripts
/
DefineButton2_175
/
BUTTONCONDACTION on(press).as
Wrap
Text File
|
2008-08-08
|
501b
|
27 lines
on(press){
_root.SFX.gotoAndPlay("Click");
var match = false;
var i = 0;
while(i < _root.cheatCodes.length)
{
var theCode = _root.cheatCodes[i];
if(_root.codeInput == theCode)
{
match = true;
break;
}
i++;
}
if(match == true)
{
_root.funcHitBox("misc","valid_code_" + _root.codeInput);
gotoAndStop("Valid");
play();
}
else
{
gotoAndStop("Invalid");
play();
}
}